import Http from '@/http';

export function saveApi(params:any) {
    return params.id ? Http.put('messageServer/update/' + params.id, params) : Http.post('messageServer/add', params)
}

export function pageApi(params:any) {
    return Http.post('messageServer/page', params)
}

export function deleteApi(id) {
    return Http.delete('messageServer/delete/' + id)
}